package com.wn.course.utils

import com.wn.course.repository.data.CourseCategory
import dagger.hilt.android.scopes.ViewModelScoped
import javax.inject.Inject

/**
 * @Author: wn
 * @Date: 2023/9/22 16:50
 * @Description: 自定义课程分类 函数类
 */
@ViewModelScoped
class CustomCategory @Inject constructor() {
  /**
   * 自定义课程分类 函数类
   * @param category CourseCategory
   */
  fun customCategoryFun(category: CourseCategory) {
    category.apply {
      add(
        CourseCategory.CourseCategoryItem(
          "android",
          1,
          "android"
        )
      )
      add(
        CourseCategory.CourseCategoryItem(
          "Kotlin",
          2,
          "Kotlin"
        )
      )
      add(
        CourseCategory.CourseCategoryItem(
          "java",
          3,
          "java"
        )
      )
      add(
        CourseCategory.CourseCategoryItem(
          "flutter",
          4,
          "flutter"
        )
      )
      add(
        CourseCategory.CourseCategoryItem(
          "大数据",
          5,
          "大数据"
        )
      )
      add(
        CourseCategory.CourseCategoryItem(
          "人工智能",
          6,
          "人工智能"
        )
      )
      add(
        CourseCategory.CourseCategoryItem(
          "前端",
          7,
          "前端"
        )
      )
      add(
        CourseCategory.CourseCategoryItem(
          "小程序",
          8,
          "小程序"
        )
      )
    }
  }
}